package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商户/部门表
 * </p>
 *
 * @author WuZH
 * @since 2023-06-19
 */
@Data
@TableName ( "merchant_info" )
@ApiModel ( value = "MerchantEntity对象", description = "商户/部门表" )
public class MerchantEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "商户Id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "商户名称" )
    @TableField ( "merchantName" )
    private String merchantName;

    @ApiModelProperty ( "联系电话" )
    @TableField ( "telPhone" )
    private String telPhone;

    @ApiModelProperty ( "联系人" )
    @TableField ( "contact" )
    private String contact;

    @ApiModelProperty ( "详细地址" )
    @TableField ( "address" )
    private String address;

    @ApiModelProperty ( "商户描述" )
    @TableField ( "merchantDesc" )
    private String merchantDesc;

    @ApiModelProperty ( "上级商户" )
    @TableField ( "parentId" )
    private String parentId;

    @ApiModelProperty ( "商户logo" )
    @TableField ( "logo" )
    private String logo;

    @ApiModelProperty ( "邮件数量" )
    @TableField ( "emailNumber" )
    private Integer emailNumber;

    @ApiModelProperty ( "短信数量" )
    @TableField ( "messageNumber" )
    private Integer messageNumber;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;

    @TableField(exist = false)
    private List<MerchantEntity> merchantEntities;
    @TableField(exist = false)
    private Integer level;

}
